* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    padding: 20px;
    background-color: #f5f5f5;
}

#shopping {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-header {
    display: flex;
    background-color: #f8f8f8;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
} 

.section {
    display: flex;
    gap: 10px;
}

.btn {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-select-all {
    background-color: #f8f8f8;
    color: #333;
}

.btn-select-all:hover {
    background-color: #e0e0e0;
}

.btn-clear {
    background-color: #f8f8f8;
    color: #333;
}

.btn-clear:hover {
    background-color: #e0e0e0;
}

.products-list {
    padding: 0 20px;
}

.product {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
    position: relative;
}

.product:hover {
    background-color: #f8f9fa;
}

.product-checkbox {
    margin-right: 20px;
}

.product-image {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    object-fit: cover;
    border-radius: 4px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-price {
    color: #ff6700;
    font-weight: bold;
    font-size: 18px;
}

.product-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin: 0 10px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.product-remove {
    position: absolute;
    right: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-remove:hover {
    color: #ff6700;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
}

.selected-goods,
.total-price {
    display: flex;
    align-items: center;
    gap: 5px;
}

.selected-goods span:nth-child(2),
.total-price span:nth-child(2) {
    font-weight: bold;
    color: #ff6700;
    font-size: 18px;
}

.checkout {
    background-color: #ff6700;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout:hover {
    background-color: #e55c00;
}

.cart-empty {
    text-align: center;
    padding: 50px 0;
    color: #666;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-out {
    animation: fadeOut 0.3s forwards;
}

@media (max-width: 768px) {
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .product {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .product-info {
        margin-top: 10px;
        margin-left: 40px;
    }
    
    .product-remove {
        position: static;
        margin-top: 10px;
        margin-left: auto;
    }
    
    .cart-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .checkout {
        width: 100%;
    }
}